<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <script>
    /* var age = prompt('输入年龄');
    if (age >= 18) {
        alert('请进');
    } else {
        alert('on')
    }; */
    /*    var year = prompt('输入年份');
       if (year % 4 == 0 && year % 100 != 0 || year % 100 == 0) {
           alert(year + '是闰年');
       } else {
           alert(year + '不是闰年');
       } */
    /* var yournamr = prompt('请输入你的名字：');
    if (yournamr === '刘德华') {
        alert('恭喜你中了5毛钱！');
    } else {
        alert('很遗憾你未中奖');
    } */
    /*    var score = prompt('输入你的成绩：');
       if (90 <= score) {
           alert('A');
       } else if (80 <= score) {
           alert('B');
       } else if (70 <= score) {
           alert('C');
       } else if (60 <= score) {
           alert('D');
       } else {
           alert('E');
       } */
    /* var time = prompt('输入数字');
    var result = time < 10 ? '0' + time : time;
    alert(result) */
    /* var fruit = prompt('输入');
    switch (fruit) {
        case '1':
            alert('1');
            break;
        case '2':
            alert('2');
            break;
        default:
            alert('0')
    } */
    /*    var time = prompt("输入几点钟");
    if (time >= 20) {
      alert("20");
    } else if (time >= 12) {
      alert("12");
    } else if (time >= 8) {
      alert("8");
    } else {
      alert("1");
    } */
  </script>

  <body></body>
</html>
